/*
 * Created on Nov 22, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.codegenerator.testcases;

import com.codegenerator.common.ThreadContext;
import com.codegenerator.db.DbTableList;
import junit.framework.TestCase;

/**
 * @author MF1180
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class TestDbTableList extends TestCase {

	DbTableList dbTableList = null;
	public static void main(String[] args) {
	}

	/*
	 * @see TestCase#setUp()
	 */
	protected void setUp() throws Exception {
		super.setUp();
		dbTableList = new DbTableList();
	}

	/*
	 * @see TestCase#tearDown()
	 */
	protected void tearDown() throws Exception {
		super.tearDown();
		dbTableList = null;
		ThreadContext.getCurrentContext().commit();
	}


	public void testDbTableList() {
		
		assertNotNull(dbTableList.getTableList());
		assertTrue(dbTableList.getTableList().size() > 0);
		assertNotNull(dbTableList.getTableList().get("client_info"));
		assertNotNull(dbTableList.getTableList().get("client_asset"));
		
	}

}
